package com.zhangdi.demo.jdbc.mapper;

import com.zhangdi.demo.jdbc.entity.Area;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface AreaMapper {
    List<Area> findAll();
    void insert(@Param("area") Area area);
    void insert33(@Param("areas") List<Area> areas);
    void updateLRById(@Param("lft") int lft,@Param("rgt") int rgt,@Param("id") int id);
    void updatePidById(@Param("pid") int id, @Param("p_lft") int lft, @Param("p_rgt") int rgt);
    void insert3(@Param("areas") List<Area> areas);
}
